//
//  QJUpData.m
//  shiweiquanjing
//
//  Created by xftt on 14-10-14.
//
//

#import "QJUpData.h"

@implementation QJUpData

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
    }
    [self setBackgroundColor:[UIColor colorWithHexString:@"#5A5A5A"]];
    UIView *backImage = [[UIView alloc] initWithFrame:CGRectMake(8, 8, 111, 75)];
    [backImage setBackgroundColor:[UIColor colorWithHexString:@"#343434"]];
    self.imgvQJ = [[UIImageView alloc] initWithFrame:CGRectMake(1, 1, 109, 73)];
    [self.imgvQJ setBackgroundColor:[UIColor colorWithHexString:@"#eeeeee"]];
    [backImage addSubview:self.imgvQJ];
    [self addSubview:backImage];
    _lbTltle = [[UILabel alloc]initWithFrame:CGRectMake(123, 8, 110, 36)];
    [_lbTltle setBackgroundColor:[UIColor clearColor]];
    [_lbTltle setTextAlignment:NSTextAlignmentLeft];
    [_lbTltle setFont:[UIFont systemFontOfSize:15]];
    [_lbTltle setTextColor:[UIColor colorWithHexString:@"#AAAAAA"]];
    _lbTltle.numberOfLines = 2;
    [self addSubview:_lbTltle];
    _btnUpData = [UIButton buttonWithType:UIButtonTypeCustom];
    [_btnUpData setFrame:CGRectMake(134, 48, 90, 35)];
    [_btnUpData setTitle:@"更新" forState:UIControlStateNormal];
    [_btnUpData.titleLabel setFont:[UIFont systemFontOfSize:14]];
    [_btnUpData setTitleColor:[UIColor colorWithHexString:@"#AAAAAA"] forState:UIControlStateNormal];
    [_btnUpData setBackgroundColor:[UIColor colorWithHexString:@"#444444"]];
    [self addSubview:_btnUpData];
    return self;
}

@end
